package cms.rbac.entity;

/**
 * Created by byzoro on 2015/12/18.
 */
public class Item {
    public static final int TYPE_ROLE = 1;
    public static final int TYPE_PERMISSION = 2;

    public int type;

    protected String name;

    protected String description;

    protected String ruleName;

    protected String data;

    protected long createdAt = System.currentTimeMillis();

    protected long updatedAt = System.currentTimeMillis();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public long getCreatedAt() {
        return createdAt;
    }

    public long getUpdatedAt() {
        return updatedAt;
    }

    @Override
    public String toString() {
        return getName();
    }
}
